package top.infopub.model.mgc;


import java.math.BigDecimal;
import java.util.Date;

import top.infopub.generic.GenericEntity;


/** 消息/协议  模板表(MGC_MSG_TEMPLATE) **/
public class MsgTemplate extends GenericEntity {

    private static final long serialVersionUID = 1L;

    /*主键ID*/
    private String id;

    /*主键ID*/
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    /* 添加时间 */
    private Date addtime;

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    /* 0：启用 1：删除 */
    private Integer delFlag;

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    /* 是否可用 0=不可用 1=可用 */
    private Integer isEnable;

    public Integer getIsEnable() {
        return isEnable;
    }

    public void setIsEnable(Integer isEnable) {
        this.isEnable = isEnable;
    }

    /* 是否实时发送 1：实时 2：非实时 */
    private Integer isRealtime;

    public Integer getIsRealtime() {
        return isRealtime;
    }

    public void setIsRealtime(Integer isRealtime) {
        this.isRealtime = isRealtime;
    }

    /* 模板主表id */
    private String mainId;

    public String getMainId() {
        return mainId;
    }

    public void setMainId(String mainId) {
        this.mainId = mainId;
    }

    /* 每日发送次数限制 */
    private Integer sendCountLimit;

    public Integer getSendCountLimit() {
        return sendCountLimit;
    }

    public void setSendCountLimit(Integer sendCountLimit) {
        this.sendCountLimit = sendCountLimit;
    }

    /* 每日单用户发送次数限制 */
    private Integer sendUserCountLimit;

    public Integer getSendUserCountLimit() {
        return sendUserCountLimit;
    }

    public void setSendUserCountLimit(Integer sendUserCountLimit) {
        this.sendUserCountLimit = sendUserCountLimit;
    }

    /* 模板内容 */
    private String templateContent;

    public String getTemplateContent() {
        return templateContent;
    }

    public void setTemplateContent(String templateContent) {
        this.templateContent = templateContent;
    }

    /* 模板名称 */
    private String templateName;

    public String getTemplateName() {
        return templateName;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    /* 所属系统 */
    private String templateSourceSystem;

    public String getTemplateSourceSystem() {
        return templateSourceSystem;
    }

    public void setTemplateSourceSystem(String templateSourceSystem) {
        this.templateSourceSystem = templateSourceSystem;
    }

    /* 标题模板 */
    private String templateTitle;

    public String getTemplateTitle() {
        return templateTitle;
    }

    public void setTemplateTitle(String templateTitle) {
        this.templateTitle = templateTitle;
    }

    /* 模板分类ID */
    private String templateTypeId;

    public String getTemplateTypeId() {
        return templateTypeId;
    }

    public void setTemplateTypeId(String templateTypeId) {
        this.templateTypeId = templateTypeId;
    }

    /* 超时时间  0为不超时  单位（分钟） */
    private BigDecimal timeout;

    public BigDecimal getTimeout() {
        return timeout;
    }

    public void setTimeout(BigDecimal timeout) {
        this.timeout = timeout;
    }

    /* 修改时间 */
    private Date updatetime;

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    /* 模板主表main code */
    private String code;
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
    
}